﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Class2
    {
        static void Mmamv(string[] args) {
            
            Console.WriteLine("请输入第一个数");
            string a = Console.ReadLine();
            Console.WriteLine("请输入第er个数");
            string b = Console.ReadLine();
            Console.WriteLine("请输入第san个数");
            string c = Console.ReadLine();
            double a1 = double.Parse(a);
            double b1 = double.Parse(b);
            double c1 = double.Parse(c);
            if (a1>b1)
            {
                if (a1>c1)
                {
                    Console.WriteLine("最大值为"+a1);
                }
                else
                {
                    Console.WriteLine("最大值为" + c1);
                }
            }
            else
            {
                if (b1>c1)
                {
                    Console.WriteLine("最大值为" + b1);
                }
                else
                {
                    Console.WriteLine("最大值为" + c1);
                }
            }
        }
    }
}
